package com.learn.lessons.helloworld.designModes.strategy.impl;

import com.learn.lessons.helloworld.commons.FileTypeResolveEnum;
import com.learn.lessons.helloworld.designModes.strategy.FileResolveStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: HelloWorld
 * @BelongsPackage: com.learn.lessons.helloworld.designModes.impl
 * @Author: guodf
 * @CreateTime: 2022-11-03  13:32
 * @Description:
 * @Version: 1.0.0
 */
@Component
@Slf4j
public class DefaultFileResolve implements FileResolveStrategy {

    @Override
    public FileTypeResolveEnum gainFileType() {
        return FileTypeResolveEnum.FILE_DEFAULT_RESOLVE;
    }

    @Override
    public void resolve(Object objectParam) {
        log.info("默认  解析文件，参数：{}",objectParam);
        //A类型解析具体逻辑
    }
}
